package org.neptune.common.enums;

/**
 * @author lwl
 * @date 2019/7/17 16:59
 */
public enum SeckillStatus {

	SUCCESS("0", "购买成功"),
	END("1", "活动结束"),
	ERROR("2", "操作失败"),
	REACH_LIMIT_TIMES("3", "请求过于频繁，请稍后再试"),
	SOLD_OUT("4", "已售罄"),
	NOT_START("5", "活动未开始"),
	LOGIN_OUT("6", "登录超时"),
	HAS_SECKILL("7", "已购买"),
	ORDER_STATUS_INVALID("-1", "无效"),
	ORDER_STATUS_VALID("0", "有效"),
	ORDER_STATUS_PAID("1", "已付款");

	private String status;

	private String msg;

	SeckillStatus(String status, String msg) {
		this.status = status;
		this.msg = msg;
	}

	public String getStatus() {
		return status;
	}

	public String getMsg() {
		return msg;
	}
}
